package com.qianli.cashmama.trade.dao;

import com.fqgj.common.base.BaseMapper;
import com.qianli.cashmama.trade.entity.TDiscountEntity;

import java.util.List;

/**
 * User: smsmsm
 * Date: 2017-07-21
 * Time: 09:10:21.138
 */

public interface TDiscountDao extends BaseMapper<TDiscountEntity> {
    /**
     * @param tradeNo
     * @return
     */
    TDiscountEntity selectOneByTradeNo(String tradeNo);

    /**
     * @param tradeNo
     * @return
     */
    List<TDiscountEntity> selectListByTradeNo(String tradeNo);


    /**
     * @param tDiscountEntity
     * @return
     */
    Integer updateByTradeNoAndDiscountCode(TDiscountEntity tDiscountEntity);


}